package com.ysp;

/**
 * @author ysp
 * @date 2021/1/9 15:10
 */
public class Main {

    public static void main(String[] args) {
        Address a = new Address("jx");
        Apple apple1 = new Apple("青苹果",23,a);

        Apple apple2 = apple1.clone();

        System.out.println(apple2);
        a.setLocation("yc");
        System.out.println(apple2);
    }
}
